class Car {
    var brand: String
    var year: Int

    init(brand: String, year: Int) {
        self.brand = brand
        self.year = year
    }

    func drive() {
        print("\(brand) is driving.")
    }
}

let myCar = Car(brand: "Honda", year: 2020)
myCar.drive()  // Output: Honda is driving.
